home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / inet / internet-drafts / draft-ietf-pppext-lcpext-02.txt < prev    next >
Text File  |  1993-07-08  |  35KB  |  1,268 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                        W A Simpson
  8. Internet Draft                                                Daydreamer
  9. expires in six months                                          July 1993
  10.  
  11.  
  12.                            PPP LCP Extensions
  13.  
  14.  
  15.  
  16. Status of this Memo
  17.  
  18.    This document is the product of the Point-to-Point Protocol Working
  19.    Group of the Internet Engineering Task Force (IETF).  Comments should
  20.    be submitted to the ietf-ppp@ucdavis.edu mailing list.
  21.  
  22.    Distribution of this memo is unlimited.
  23.  
  24.    This document is an Internet Draft.  Internet Drafts are working
  25.    documents of the Internet Engineering Task Force (IETF), its Areas,
  26.    and its Working Groups.  Note that other groups may also distribute
  27.    working documents as Internet Drafts.
  28.  
  29.    Internet Drafts are draft documents valid for a maximum of six
  30.    months.  Internet Drafts may be updated, replaced, or obsoleted by
  31.    other documents at any time.  It is not appropriate to use Internet
  32.    Drafts as reference material or to cite them other than as a
  33.    ``working draft'' or ``work in progress.''
  34.  
  35.    Please check the 1id-abstracts.txt listing contained in the
  36.    internet-drafts Shadow Directories on nic.ddn.mil, nnsc.nsf.net,
  37.    nic.nordu.net, ftp.nisc.sri.com, or munnari.oz.au to learn the
  38.    current status of any Internet Draft.
  39.  
  40. Abstract
  41.  
  42.    The Point-to-Point Protocol (PPP) [1] provides a standard method for
  43.    transmitting multi-protocol datagrams over point-to-point links.
  44.  
  45.    PPP defines an extensible Link Control Protocol (LCP) for
  46.    establishing, configuring, and testing the data-link connection.
  47.    This document defines several additional LCP features which have been
  48.    suggested over the past year.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Simpson                  expires in six months                  [Page i]
  59. DRAFT                      PPP LCP extensions                  July 1993
  60.  
  61.  
  62. 1.  Additional LCP Packets
  63.  
  64. The Packet format and basic facilities are already defined for LCP [1].
  65.  
  66. Up-to-date values of the LCP Code field are specified in the most recent
  67. "Assigned Numbers" RFC [2].  This specification concerns the following
  68. values:
  69.  
  70.    12      Identification
  71.    13      Time-Remaining
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. Simpson                  expires in six months                  [Page 1]
  114. DRAFT                      PPP LCP extensions                  July 1993
  115.  
  116.  
  117. 1.1.  Identification
  118.  
  119.    Description
  120.  
  121.       This Code provides a method for an implementation to identify
  122.       itself to its peer.  This Code might be used for many diverse
  123.       purposes, such as link troubleshooting, license enforcement, etc.
  124.  
  125.       Identification is a Link Maintenance packet.  It does not include
  126.       the Magic Number, since the Magic Number may be in the process of
  127.       negotiation.
  128.  
  129.       Identification packets MAY be sent at any time.  The sender
  130.       transmits a LCP packet with the Code field set to 12
  131.       (Identification) the Identifier field set, and the Message field
  132.       filled with any desired data, but not exceeding the default MRU
  133.       minus four.
  134.  
  135.       Receipt of an Identification packet causes the RXR or RUC event.
  136.       There is no response to the Identification packet.
  137.  
  138.       Receipt of a Code-Reject for the Identification packet SHOULD
  139.       generate the RXJ+ (permitted) event.
  140.  
  141.       Rationale:
  142.  
  143.          This feature is defined as part of LCP, rather than as a
  144.          separate PPP Protocol, in order that its benefits may be
  145.          available during the earliest possible stage of the Link
  146.          Establishment phase.  It allows an operator to learn the
  147.          identification of the peer even when negotiation is not
  148.          converging.  Non-LCP packets MUST NOT be sent during the Link
  149.          Establishment phase.
  150.  
  151.          This feature is defined as a separate LCP Code, rather than a
  152.          Configuration-Option, so that the peer need not include it with
  153.          other items in configuration packet exchanges, and handle
  154.          "corrected" values or "rejection", since its generation is both
  155.          rare and in one direction.  It is recommended that
  156.          Identification packets be sent whenever a Configure-Reject is
  157.          sent or received, as a final message when negotiation fails to
  158.          converge, and when LCP reaches the Opened state.
  159.  
  160.    A summary of the Identification packet format is shown below.  The
  161.    fields are transmitted from left to right.
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168. Simpson                  expires in six months                  [Page 2]
  169. DRAFT                      PPP LCP extensions                  July 1993
  170.  
  171.  
  172.  
  173.     0                   1                   2                   3
  174.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  175.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  176.    |     Code      |  Identifier   |            Length             |
  177.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  178.    |    Message ...
  179.    +-+-+-+-+-+-+-+-+
  180.  
  181.  
  182.    Code
  183.  
  184.       12 for Identification
  185.  
  186.    Identifier
  187.  
  188.       The Identifier field is one octet and is for use by the
  189.       Identification sender.
  190.  
  191.    Length
  192.  
  193.       >= 8
  194.  
  195.    Message
  196.  
  197.       The Message field is zero or more octets, and its contents are
  198.       implementation dependent.  It is intended to be human readable,
  199.       and MUST NOT affect operation of the protocol.  It is recommended
  200.       that the message contain displayable ASCII characters 32 through
  201.       126 decimal.  Mechanisms for extension to other character sets are
  202.       the topic of future research.  The size is determined from the
  203.       Length field.
  204.  
  205.       Implementation Note:
  206.  
  207.          The Message will usually contain the sender's hardware type,
  208.          PPP software revision level, and PPP product serial number.  A
  209.          robust implementation SHOULD support many formats, and SHOULD
  210.          be able to receive and display a very long Message.
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223. Simpson                  expires in six months                  [Page 3]
  224. DRAFT                      PPP LCP extensions                  July 1993
  225.  
  226.  
  227. 1.2.  Time-Remaining
  228.  
  229.    Description
  230.  
  231.       This Code provides a mechanism for notifying the peer of the time
  232.       remaining in this session.
  233.  
  234.       The nature of this information is advisory only.  It is intended
  235.       that only one side of the connection will send this packet
  236.       (generally a "network access server").  The session is actually
  237.       concluded by the Terminate-Request packet.
  238.  
  239.       Time-Remaining is a Link Maintenance packet.
  240.  
  241.       The sender transmits a LCP packet with the Code field set to 13
  242.       (Time-Remaining) the Identifier field set, the local Magic-Number
  243.       inserted, and the Message field filled with any desired data, but
  244.       not exceeding the peer's established MRU minus twelve.
  245.  
  246.       Receipt of an Time-Remaining packet causes the RXR or RUC event.
  247.       There is no response to the Time-Remaining packet.
  248.  
  249.       Receipt of a Code-Reject for the Time-Remaining packet SHOULD
  250.       generate the RXJ+ (permitted) event.
  251.  
  252.       Rationale:
  253.  
  254.          This notification is defined as a separate LCP Code, rather
  255.          than a Configuration-Option, in order that changes and warning
  256.          messages may occur dynamically during the session, and that the
  257.          information might be determined after Authentication has
  258.          occurred.  Typically, this packet is sent when the link enters
  259.          Network-Layer Protocol phase, and at regular intervals
  260.          throughout the session, particularly near the end of the
  261.          session.
  262.  
  263.    A summary of the Time-Remaining packet format is shown below.  The
  264.    fields are transmitted from left to right.
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278. Simpson                  expires in six months                  [Page 4]
  279. DRAFT                      PPP LCP extensions                  July 1993
  280.  
  281.  
  282.  
  283.     0                   1                   2                   3
  284.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  285.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  286.    |     Code      |  Identifier   |            Length             |
  287.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  288.    |                         Magic-Number                          |
  289.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  290.    |                       Seconds-Remaining                       |
  291.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  292.    |    Message ...
  293.    +-+-+-+-+-+-+-+-+
  294.  
  295.  
  296.    Code
  297.  
  298.       13 for Time-Remaining
  299.  
  300.    Identifier
  301.  
  302.       The Identifier field is one octet and is for use by the Time-
  303.       Remaining sender.
  304.  
  305.    Length
  306.  
  307.       >= 12
  308.  
  309.    Seconds-Remaining
  310.  
  311.       The Seconds-Remaining field is four octets and indicates the
  312.       number of integral seconds remaining in this session.  This 32 bit
  313.       unsigned value is sent most significant octet first.  A value of
  314.       0xffffffff (all ones) represents no timeout, or "forever".
  315.  
  316.    Message
  317.  
  318.       The Message field is zero or more octets, and its contents are
  319.       implementation dependent.  It is intended to be human readable,
  320.       and MUST NOT affect operation of the protocol.  It is recommended
  321.       that the message contain displayable ASCII characters 32 through
  322.       126 decimal.  Mechanisms for extension to other character sets are
  323.       the topic of future research.  The size is determined from the
  324.       Length field.
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333. Simpson                  expires in six months                  [Page 5]
  334. DRAFT                      PPP LCP extensions                  July 1993
  335.  
  336.  
  337. 2.  Additional LCP Configuration Options
  338.  
  339. The Configuration Option format and basic options are already defined
  340. for LCP [1].
  341.  
  342. Up-to-date values of the LCP Option Type field are specified in the most
  343. recent "Assigned Numbers" RFC [2].  This document concerns the following
  344. values:
  345.  
  346.    9       FCS-Alternatives
  347.  
  348.    10      Self-Describing-Padding
  349.  
  350.    13      Callback
  351.  
  352.    15      Compound-Frames
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388. Simpson                  expires in six months                  [Page 6]
  389. DRAFT                      PPP LCP extensions                  July 1993
  390.  
  391.  
  392. 2.1.  FCS-Alternatives
  393.  
  394.    Description
  395.  
  396.       This Configuration Option provides a method for an implementation
  397.       to specify another FCS format to be sent by the peer, or to
  398.       negotiate away the FCS altogether.
  399.  
  400.       This option is negotiated separately in each direction.  However,
  401.       it is not required that an implementation be capable of
  402.       concurrently generating a different FCS on each side of the link.
  403.  
  404.       The negotiated FCS values take effect only during Authentication
  405.       and Network-Layer Protocol phases.  Packets sent during any other
  406.       phase MUST contain the default FCS.
  407.  
  408.       Implementation Note:
  409.  
  410.          For most PPP HDLC framed links, the default FCS is the CCITT
  411.          16-bit FCS.  Some framing techniques and high speed links may
  412.          use another format as the default FCS.
  413.  
  414.    A summary of the FCS-Alternatives Configuration Option format is
  415.    shown below.  The fields are transmitted from left to right.
  416.  
  417.     0                   1                   2
  418.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
  419.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  420.    |     Type      |    Length     |    Options    |
  421.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  422.  
  423.  
  424.    Type
  425.  
  426.       9
  427.  
  428.    Length
  429.  
  430.       3
  431.  
  432.    Options
  433.  
  434.       This field is one octet, and is comprised of the "logical or" of
  435.       the following values:
  436.  
  437.       1       Null FCS
  438.  
  439.       2       CCITT 16-bit FCS
  440.  
  441.  
  442.  
  443. Simpson                  expires in six months                  [Page 7]
  444. DRAFT                      PPP LCP extensions                  July 1993
  445.  
  446.  
  447.       4       CCITT 32-bit FCS
  448.  
  449. 2.1.1.  LCP considerations
  450.  
  451.    The link can be subject to loss of state, and the LCP can re-
  452.    negotiate at any time.  When the LCP begins renegotiation or
  453.    termination, it is recommended that the LCP Configure-Request or
  454.    Terminate-Request packet be sent with the last negotiated FCS, then
  455.    change to the default FCS, and send a duplicate packet with the
  456.    default FCS.  The packet identifier SHOULD NOT be incremented for
  457.    each such packet.
  458.  
  459.    On receipt of a LCP Configure-Request or Terminate-Request packet,
  460.    the implementation MUST change to the default FCS for both
  461.    transmission and reception.  If the Request packet received contains
  462.    a duplicate Identifier field, it SHOULD be silently discarded.
  463.  
  464.    Implementation Notes:
  465.  
  466.       The need to send two packets is only necessary after the
  467.       Alternative-FCS has already been negotiated.  It need not occur
  468.       during state transitions when there is a natural indication that
  469.       the default FCS is in effect, such as the Down and Up events.  It
  470.       is necessary to send two packets in the Ack-Sent and Opened
  471.       states, since the peer could mistakenly believe that the link has
  472.       Opened.
  473.  
  474.       It is possible to send a single 48-bit FCS which is a combination
  475.       of the 16-bit and 32-bit FCS.  This may be sent instead of sending
  476.       the two packets described above.  We have not standardized this
  477.       procedure because of intellectual property concerns.  If such a
  478.       48-bit FCS is used, it MUST only be used for LCP packets.
  479.  
  480. 2.1.2.  Null FCS
  481.  
  482.    The Null FCS SHOULD only be used for those network-layer and
  483.    transport protocols which have an end-to-end checksum available, such
  484.    as TCP/IP, or UDP/IP with the checksum enabled.  That is, the Null
  485.    FCS option SHOULD be negotiated together with another non-null FCS
  486.    option in a heterogeneous environment.
  487.  
  488.    When a configuration (LCP or NCP) or authentication packet is sent,
  489.    the FCS MUST be included.  When a configuration (LCP or NCP) or
  490.    authentication packet is received, the FCS MUST be verified.
  491.  
  492.    There are several cases to be considered:
  493.  
  494.  
  495.  
  496.  
  497.  
  498. Simpson                  expires in six months                  [Page 8]
  499. DRAFT                      PPP LCP extensions                  July 1993
  500.  
  501.  
  502.    Null FCS alone
  503.  
  504.       The sender generates the FCS for those packets which require the
  505.       FCS before passing the packet to the link multiplexor.
  506.  
  507.       When a packet is received, it is not necessary to check the FCS
  508.       before demultiplexing.  Any FCS is treated as padding.
  509.  
  510.       Receipt of an Authentication or Control packet would be discovered
  511.       after passing the packet to the demultiplexer.  Verification of
  512.       the FCS can easily be accomplished using one of the software
  513.       algorithms defined in PPP HDLC Framing [3] (16-bit FCS) and
  514.       Appendix A (32-bit FCS).
  515.  
  516.    Null FCS with another FCS, using software
  517.  
  518.       This is similar to the above case.
  519.  
  520.       Those packets which are required to have the FCS (Authentication,
  521.       Control, or Network-Protocols lacking a checksum) are checked
  522.       using software after demultiplexing.  Packets which fail the FCS
  523.       test are discarded as usual.
  524.  
  525.    Null FCS with another FCS, using hardware
  526.  
  527.       A flag is passed with the packet, indicating whether or not it has
  528.       passed the hardware FCS check.  The incorrect FCS MUST be passed
  529.       with the rest of the data.  The packet MUST NOT be discarded until
  530.       after demultiplexing, and only those packets that require the FCS
  531.       are discarded.
  532.  
  533.    All three FCS forms (Null, 16 and 32) may be used concurrently on
  534.    different packets when using software.  That is probably not possible
  535.    with most current hardware.
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553. Simpson                  expires in six months                  [Page 9]
  554. DRAFT                      PPP LCP extensions                  July 1993
  555.  
  556.  
  557. 2.2.  Self-Describing-Padding
  558.  
  559.    Description
  560.  
  561.       This Configuration Option provides a method for an implementation
  562.       to indicate to the peer that it understands self-describing pads
  563.       when padding is added at the end of the PPP Information field.
  564.  
  565.       This option is most likely to be used when some protocols, such as
  566.       network-layer or compression protocols, are configured which
  567.       require detection and removal of any trailing padding.  Such
  568.       special protocols are identified in their respective documents.
  569.  
  570.       If the option is Rejected, the peer MUST NOT add any padding to
  571.       the identified special protocols, but MAY add padding to other
  572.       protocols.
  573.  
  574.       If the option is Ack'd, the peer MUST follow the procedures for
  575.       adding self-describing pads, but only to the specifically
  576.       identified protocols.  The peer is not required to add any padding
  577.       to other protocols.
  578.  
  579.       Implementation Notes:
  580.  
  581.          This is defined so that the Reject handles either case where
  582.          the peer does not generate self-describing pads.  When the peer
  583.          never generates padding, it may safely Reject the option.  When
  584.          the peer does not understand the option, it also will not
  585.          successfully configure a special protocol which requires
  586.          elimination of pads.
  587.  
  588.          While some senders might only be capable of adding padding to
  589.          every protocol or not adding padding to any protocol, by design
  590.          the receiver need not examine those protocols which do not need
  591.          the padding stripped.
  592.  
  593.          To avoid unnecessary configuration handshakes, an
  594.          implementation which generates padding, and has a protocol
  595.          configured which requires the padding to be known, SHOULD
  596.          include this Option in its Configure-Request, and SHOULD
  597.          Configure-Nak with this Option when it is not present in the
  598.          peer's Request.
  599.  
  600.       Each octet of self-describing pad contains the index of that
  601.       octet; that is, three pad octets would contain the values 1, 2, 3.
  602.       After removing the FCS, the final pad octet contains the number of
  603.       pad octets to remove.
  604.  
  605.  
  606.  
  607.  
  608. Simpson                  expires in six months                 [Page 10]
  609. DRAFT                      PPP LCP extensions                  July 1993
  610.  
  611.  
  612.       The Maximum-Pad-Value (MPV) is also negotiated.  Only the values 1
  613.       through MPV are used.  When no padding would otherwise be
  614.       required, but the final octet of the PPP Information field
  615.       contains the value 1 through MPV, at least one self-describing pad
  616.       octet MUST be added to the frame.  If the final octet is greater
  617.       than MPV, no additional padding is required.
  618.  
  619.       Implementation Notes:
  620.  
  621.          The first pad octet MUST contain the value one (1) to prevent
  622.          confusion with the Compound-Frames option.
  623.  
  624.          If any of the pad octets contain an incorrect index value, the
  625.          entire frame SHOULD be silently discarded.  This is intended to
  626.          prevent confusion with the FCS-Alternatives option, but might
  627.          not be necessary in robust implementations.
  628.  
  629.          Since this option is intended to support compression protocols,
  630.          the Maximum-Pad-Value is specified to limit the likelihood that
  631.          a frame may actually become longer.
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663. Simpson                  expires in six months                 [Page 11]
  664. DRAFT                      PPP LCP extensions                  July 1993
  665.  
  666.  
  667.    A summary of the Self-Describing-Padding Configuration Option format
  668.    is shown below.  The fields are transmitted from left to right.
  669.  
  670.     0                   1                   2
  671.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
  672.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  673.    |     Type      |    Length     |    Maximum    |
  674.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  675.  
  676.  
  677.    Type
  678.  
  679.       10
  680.  
  681.    Length
  682.  
  683.       3
  684.  
  685.    Maximum
  686.  
  687.       This field specifies the largest number of padding octets which
  688.       may be added to the frame.  The value may range from 1 to 255, but
  689.       values of 2, 4, or 8 are most likely.
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718. Simpson                  expires in six months                 [Page 12]
  719. DRAFT                      PPP LCP extensions                  July 1993
  720.  
  721.  
  722. 2.3.  Callback
  723.  
  724.    Description
  725.  
  726.       This Configuration Option provides a method for an implementation
  727.       to request a dial-up peer to call back.  This option might be used
  728.       for many diverse purposes, such as savings on toll charges.
  729.  
  730.       When Callback is successfully negotiated, and authentication is
  731.       complete, the Authentication phase proceeds directly to the
  732.       Termination phase, and the link is disconnected.
  733.  
  734.       Then, the peer re-establishes the link, without negotiating
  735.       Callback.
  736.  
  737.       Implementation Notes:
  738.  
  739.          A peer which agrees to this option SHOULD request the
  740.          Authentication-Protocol Configuration Option.  The user
  741.          information learned during authentication can be used to
  742.          determine the user location, or to limit a user to certain
  743.          locations, or merely to determine whom to bill for the service.
  744.  
  745.          Authentication SHOULD be requested in turn by the
  746.          implementation when it is called back, if mutual authentication
  747.          is desired.
  748.  
  749.    A summary of the Callback Option format is shown below.  The fields
  750.    are transmitted from left to right.
  751.  
  752.     0                   1                   2                   3
  753.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  754.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  755.    |     Type      |    Length     |   Operation   |  Message ...
  756.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  757.  
  758.  
  759.    Type
  760.  
  761.       13
  762.  
  763.    Length
  764.  
  765.       >= 3
  766.  
  767.    Operation
  768.  
  769.       The Operation field is one octet and indicates the contents of the
  770.  
  771.  
  772.  
  773. Simpson                  expires in six months                 [Page 13]
  774. DRAFT                      PPP LCP extensions                  July 1993
  775.  
  776.  
  777.       Message field.
  778.  
  779.       0       location is determined by user authentication
  780.  
  781.       1       Dialing string, the format and contents of which assumes
  782.               configuration knowlege of the specific device which is
  783.               making the callback.
  784.  
  785.       2       Location identifier, which may or may not be human
  786.               readable, to be used together with the authentication
  787.               information for a database lookup to determine the
  788.               callback location.
  789.  
  790.       3       E.164 number.
  791.  
  792.       4       Distinguished name.
  793.  
  794. Message
  795.  
  796.    The Message field is zero or more octets, and its general contents
  797.    are determined by the Operation field.  The actual format of the
  798.    information is site or application specific, and a robust
  799.    implementation SHOULD support the field as undistinguished octets.
  800.    The size is determined from the Length field.
  801.  
  802.    It is intended that only an authorized user will have correct site
  803.    specific information to make use of the Callback.  The codification
  804.    of the range of allowed usage of this field is outside the scope of
  805.    this specification.
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828. Simpson                  expires in six months                 [Page 14]
  829. DRAFT                      PPP LCP extensions                  July 1993
  830.  
  831.  
  832. 2.4.  Compound-Frames
  833.  
  834.    Description
  835.  
  836.       This Configuration Option provides a method for an implementation
  837.       to send multiple PPP Protocol packets within the same frame.  This
  838.       option might be used for many diverse purposes, such as savings on
  839.       toll charges.
  840.  
  841.       Only those Protocols which have determinate lengths or integral
  842.       length fields may be aggregated into a compound frame.
  843.  
  844.       When Compound-Frames is successfully negotiated, the sender MAY
  845.       add additional packets to the same frame.  Each packet is
  846.       immediately followed by another Protocol field, with its attendant
  847.       datagram.
  848.  
  849.       When padding is added to the end of the Information field, the
  850.       procedure described in Self-Describing-Padding is used.
  851.       Therefore, this option MUST be negotiated together with the Self-
  852.       Describing-Padding option.
  853.  
  854.       If the FCS-Alternatives option has been negotiated, and no self-
  855.       describing padding has been added, the final packet MUST be
  856.       followed by a single octet containing the value one (1).
  857.  
  858.       On receipt, the first Protocol field is examined, and the packet
  859.       is processed as usual.  For those datagrams which have a
  860.       determinate length, the remainder of the frame is returned to the
  861.       demultiplexor, and treated as a new Protocol field.  This
  862.       processing is complete when a datagram is processed which does not
  863.       have a determinate length, when the remainder of the frame is
  864.       empty, or when the Protocol field is determined to have a value of
  865.       one (1).
  866.  
  867.       The PPP Protocol value of one (1) is reserved as the Padding
  868.       Protocol.  Any following octets are removed as padding.
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883. Simpson                  expires in six months                 [Page 15]
  884. DRAFT                      PPP LCP extensions                  July 1993
  885.  
  886.  
  887.    A summary of the Compound-Frames Option format is shown below.  The
  888.    fields are transmitted from left to right.
  889.  
  890.     0                   1
  891.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  892.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  893.    |     Type      |    Length     |
  894.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  895.  
  896.  
  897.    Type
  898.  
  899.       15
  900.  
  901.    Length
  902.  
  903.       2
  904.  
  905. 2.4.1.  LCP considerations
  906.  
  907.    During initial negotiation, the Compound-Frames option can be used to
  908.    minimize the negotiation latency, by reducing the number of frames
  909.    exchanged.
  910.  
  911.    The first LCP Configure-Request packet is sent as usual in a single
  912.    frame, including the Self-Describing-Padding and Compound-Frames
  913.    options.
  914.  
  915.    The peer SHOULD respond with a Configure-Ack, followed in a compound
  916.    frame by its LCP Configure-Request, and any NCP Configure-Requests
  917.    desired.
  918.  
  919.    Upon receipt, the local implementation SHOULD process the Configure-
  920.    Ack as usual.  Since the peer has agreed to send compound frames, the
  921.    implementation MUST examine the remainder of the frame for additional
  922.    packets.  If the peer also specified the Self-Describing-Padding and
  923.    Compound-Frames options in its Configure-Request, the local
  924.    implementation SHOULD retain its Configure-Ack, and further NCP
  925.    configuration packets SHOULD be added to the return frame.
  926.  
  927.    Together with the peer's final return frame, the minimum number of
  928.    frames to complete configuration is 4.
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938. Simpson                  expires in six months                 [Page 16]
  939. DRAFT                      PPP LCP extensions                  July 1993
  940.  
  941.  
  942. A.  Fast Frame Check Sequence (FCS) Implementation
  943.  
  944. A.1.  32-bit FCS Computation Method
  945.  
  946.    The following code provides a table lookup computation for
  947.    calculating the 32-bit Frame Check Sequence as data arrives at the
  948.    interface.
  949.  
  950.    /*
  951.     * u32 represents an unsigned 32-bit number.  Adjust the typedef for
  952.     * your hardware.
  953.     */
  954.    typedef unsigned long u32;
  955.  
  956.    static u32 fcstab_32[256] =
  957.       {
  958.       0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
  959.       0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,
  960.       0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
  961.       0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91,
  962.       0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de,
  963.       0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,
  964.       0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec,
  965.       0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5,
  966.       0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,
  967.       0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b,
  968.       0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940,
  969.       0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,
  970.       0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116,
  971.       0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f,
  972.       0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
  973.       0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d,
  974.       0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a,
  975.       0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433,
  976.       0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818,
  977.       0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01,
  978.       0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e,
  979.       0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457,
  980.       0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c,
  981.       0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65,
  982.       0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2,
  983.       0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb,
  984.       0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0,
  985.       0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9,
  986.       0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086,
  987.       0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
  988.       0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4,
  989.       0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad,
  990.  
  991.  
  992.  
  993. Simpson                  expires in six months                 [Page 17]
  994. DRAFT                      PPP LCP extensions                  July 1993
  995.  
  996.  
  997.       0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a,
  998.       0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683,
  999.       0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8,
  1000.       0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1,
  1001.       0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe,
  1002.       0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7,
  1003.       0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc,
  1004.       0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5,
  1005.       0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252,
  1006.       0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b,
  1007.       0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60,
  1008.       0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79,
  1009.       0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
  1010.       0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f,
  1011.       0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04,
  1012.       0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d,
  1013.       0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a,
  1014.       0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713,
  1015.       0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38,
  1016.       0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21,
  1017.       0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e,
  1018.       0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777,
  1019.       0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c,
  1020.       0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45,
  1021.       0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2,
  1022.       0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db,
  1023.       0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0,
  1024.       0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
  1025.       0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6,
  1026.       0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf,
  1027.       0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94,
  1028.       0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d
  1029.       };
  1030.  
  1031.    #define PPPINITFCS32  0xffffffff   /* Initial FCS value */
  1032.    #define PPPGOODFCS32  0xdebb20e3   /* Good final FCS value */
  1033.  
  1034.    /*
  1035.     * Calculate a new FCS given the current FCS and the new data.
  1036.     */
  1037.    u32 pppfcs32(fcs, cp, len)
  1038.        register u32 fcs;
  1039.        register unsigned char *cp;
  1040.        register int len;
  1041.        {
  1042.        ASSERT(sizeof (u32) == 4);
  1043.        ASSERT(((u32) -1) > 0);
  1044.        while (len--)
  1045.  
  1046.  
  1047.  
  1048. Simpson                  expires in six months                 [Page 18]
  1049. DRAFT                      PPP LCP extensions                  July 1993
  1050.  
  1051.  
  1052.            fcs = (((fcs) >> 8) ^ fcstab_32[((fcs) ^ (*cp++)) & 0xff]);
  1053.  
  1054.        return (fcs);
  1055.        }
  1056.  
  1057.    /*
  1058.     * How to use the fcs
  1059.     */
  1060.    tryfcs32(cp, len)
  1061.        register unsigned char *cp;
  1062.        register int len;
  1063.    {
  1064.        u32 trialfcs;
  1065.  
  1066.        /* add on output */
  1067.        trialfcs = pppfcs32( PPPINITFCS32, cp, len );
  1068.        trialfcs ^= 0xffffffff;             /* complement */
  1069.        cp[len] = (trialfcs & 0x00ff);      /* Least significant byte first */
  1070.        cp[len+1] = ((trialfcs >>= 8) & 0x00ff);
  1071.        cp[len+2] = ((trialfcs >>= 8) & 0x00ff);
  1072.        cp[len+3] = ((trialfcs >> 8) & 0x00ff);
  1073.  
  1074.        /* check on input */
  1075.        trialfcs = pppfcs32( PPPINITFCS32, cp, len + 4 );
  1076.        if ( trialfcs == PPPGOODFCS32 )
  1077.            printf("Good FCS\n");
  1078.    }
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103. Simpson                  expires in six months                 [Page 19]
  1104. DRAFT                      PPP LCP extensions                  July 1993
  1105.  
  1106.  
  1107. Security Considerations
  1108.  
  1109.    Security issues are briefly discussed in sections concerning the
  1110.    Callback Configuration Option.
  1111.  
  1112.  
  1113. References
  1114.  
  1115.    [1]   Simpson, W.A., "The Point-to-Point Protocol (PPP)", work in
  1116.          progress.
  1117.  
  1118.    [2]   Reynolds, J.K., Postel, J.B., "Assigned Numbers", RFC 1340,
  1119.          July 1992.
  1120.  
  1121.    [3]   Simpson, W.A., "PPP HLDC Framing", work in progress.
  1122.  
  1123.  
  1124. Acknowledgments
  1125.  
  1126.    The Identification feature was suggested by Bob Sutterfield (Morning
  1127.    Star Technologies).
  1128.  
  1129.    The Time-Remaining feature was suggested by Brad Parker (then of
  1130.    Cayman).
  1131.  
  1132.    Some of the original text for FCS-Alternatives was provided by Arthur
  1133.    Harvey (then of DEC).  The Null FCS was requested by Peter Honeyman
  1134.    (UMich).  The 32-bit FCS example code was provided by Karl Fox
  1135.    (Morning Star Technologies).
  1136.  
  1137.    Self-Describing-Padding was suggested and named by Fred Baker (ACC).
  1138.  
  1139.    Compound-Frames was suggested by Keith Sklower (Berkeley).
  1140.  
  1141.  
  1142. Chair's Address
  1143.  
  1144.    The working group can be contacted via the current chair:
  1145.  
  1146.       Fred Baker
  1147.       Advanced Computer Communications
  1148.       315 Bollay Drive
  1149.       Santa Barbara, California, 93111
  1150.  
  1151.       EMail: fbaker@acc.com
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158. Simpson                  expires in six months                 [Page 20]
  1159. DRAFT                      PPP LCP extensions                  July 1993
  1160.  
  1161.  
  1162. Editor's Address
  1163.  
  1164.    Questions about this memo can also be directed to:
  1165.  
  1166.       William Allen Simpson
  1167.       Daydreamer
  1168.       Computer Systems Consulting Services
  1169.       P O Box 6205
  1170.       East Lansing, MI  48826-6205
  1171.  
  1172.       EMail: Bill.Simpson@um.cc.umich.edu
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213. Simpson                  expires in six months                 [Page 21]
  1214. DRAFT                      PPP LCP extensions                  July 1993
  1215.  
  1216.  
  1217.                            Table of Contents
  1218.  
  1219.  
  1220.      1.     Additional LCP Packets ................................    1
  1221.         1.1       Identification ..................................    2
  1222.         1.2       Time-Remaining ..................................    4
  1223.  
  1224.      2.     Additional LCP Configuration Options ..................    6
  1225.         2.1       FCS-Alternatives ................................    7
  1226.            2.1.1  LCP considerations ..............................    8
  1227.            2.1.2  Null FCS ........................................    8
  1228.         2.2       Self-Describing-Padding .........................   10
  1229.         2.3       Callback ........................................   13
  1230.         2.4       Compound-Frames .................................   15
  1231.            2.4.1  LCP considerations ..............................   16
  1232.  
  1233.      APPENDICES ...................................................   17
  1234.  
  1235.      A.     Fast Frame Check Sequence (FCS) Implementation ........   17
  1236.         A.1       32-bit FCS Computation Method ...................   17
  1237.  
  1238.      SECURITY CONSIDERATIONS ......................................   20
  1239.  
  1240.      REFERENCES ...................................................   20
  1241.  
  1242.      ACKNOWLEDGEMENTS .............................................   20
  1243.  
  1244.      CHAIR'S ADDRESS ..............................................   20
  1245.  
  1246.      EDITOR'S ADDRESS .............................................   20
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.